import Vue from "vue";
import Router from "vue-router"; //引入vue-router
Vue.use(Router); //注册vue-router
//首页
import indexComponent from "../components/IndexComponent";
//销售管理
import saleRequest from "../components/sale/SaleRequest";
import saleOrder from "../components/sale/SaleOrder";
import saleReturnRequest from "../components/sale/SaleReturnRequest";
import saleReturnOrder from "../components/sale/SaleReturnOrder";
//采购管理
import purchaseOrder from "../components/purchase/PurchaseOrder";
import purchaseRequest from "../components/purchase/PurchaseRequest";
import purchaseReturnOrder from "../components/purchase/PurchaseReturnOrder";
import purchaseReturnRequest from "../components/purchase/PurchaseReturnRequest";
//人事管理
import userManage from "../components/personnel/UserManage";
import roleManage from "../components/personnel/RoleManage";
import departmentManage from "../components/personnel/DepartmentManage";
import authorityManage from "../components/personnel/AuthorityManage";
//财务管理
import debtManage from "../components/finance/DebtManage";
import giveManage from "../components/finance/GiveManage";
import incomeManage from "../components/finance/IncomeManage";
//资料管理
import supplierManage from "../components/profile/SupplierManage";
import outboundManage from "../components/profile/PurchasedGoodManage";
import purchasedGoodManage from "../components/profile/OutboundManage";
import customerManage from "../components/profile/CustomerManage";
import goodUnit from "../components/profile/GoodUnit.vue";
//仓库管理
import purchaseReturn from "../components/warehouse/PurchaseReturn";
import purchaseWarehousing from "../components/warehouse/PurchaseWarehousing";
import saleReturn from "../components/warehouse/SaleReturn";
import saleWarehousing from "../components/warehouse/SaleWarehousing";
import warehouseProduct from "../components/warehouse/WarehouseProduct";
//消息管理
import msgManage from "../components/MsgManage";
//系统监控
import logManage from "../components/LogManage";
export default new Router({
  routes: [
    //首页
    {
      path: "/",
      name: "indexComponent",
      component: indexComponent,
    },
    //销售管理
    {
      path: "/saleOrder",
      name: "saleOrder",
      component: saleOrder,
    },
    {
      path: "/saleReturnRequest",
      name: "saleReturnRequest",
      component: saleReturnRequest,
    },
    {
      path: "/saleRequest",
      name: "saleRequest",
      component: saleRequest,
    },
    {
      path: "/saleReturnOrder",
      name: "saleReturnOrder",
      component: saleReturnOrder,
    },
    //采购管理
    {
      path: "/purchaseOrder",
      name: "purchaseOrder",
      component: purchaseOrder,
    },
    {
      path: "/purchaseRequest",
      name: "purchaseRequest",
      component: purchaseRequest,
    },
    {
      path: "/purchaseReturnOrder",
      name: "purchaseReturnOrder",
      component: purchaseReturnOrder,
    },
    {
      path: "/purchaseReturnRequest",
      name: "purchaseReturnRequest",
      component: purchaseReturnRequest,
    },
    //人事管理
    {
      path: "/authorityManage",
      name: "authorityManage",
      component: authorityManage,
    },
    {
      path: "/departmentManage",
      name: "departmentManage",
      component: departmentManage,
    },
    {
      path: "/roleManage",
      name: "roleManage",
      component: roleManage,
    },
    {
      path: "/userManage",
      name: "userManage",
      component: userManage,
    },
    //财务管理
    {
      path: "/incomeManage",
      name: "incomeManage",
      component: incomeManage,
    },
    {
      path: "/giveManage",
      name: "giveManage",
      component: giveManage,
    },
    {
      path: "/debtManage",
      name: "debtManage",
      component: debtManage,
    },
    //资料管理
    {
      path: "/supplierManage",
      name: "supplierManage",
      component: supplierManage,
    },
    {
      path: "/customerManage",
      name: "customerManage",
      component: customerManage,
    },
    {
      path: "/purchasedGoodManage",
      name: "purchasedGoodManage",
      component: purchasedGoodManage,
    },
    {
      path: "/outboundManage",
      name: "outboundManage",
      component: outboundManage,
    },
    {
      path: "/goodUnit",
      name: "goodUnit",
      component: goodUnit,
    },
    //仓库管理
    {
      path: "/purchaseReturn",
      name: "purchaseReturn",
      component: purchaseReturn,
    },
    {
      path: "/purchaseWarehousing",
      name: "purchaseWarehousing",
      component: purchaseWarehousing,
    },
    {
      path: "/saleReturn",
      name: "saleReturn",
      component: saleReturn,
    },
    {
      path: "/saleWarehousing",
      name: "saleWarehousing",
      component: saleWarehousing,
    },
     {
      path: "/warehouseProduct",
      name: "warehouseProduct",
      component: warehouseProduct,
    },
    //消息管理
    {
      path: "/msgManage",
      name: "msgManage",
      component: msgManage,
    },
     //系统监控
     {
      path: "/logManage",
      name: "logManage",
      component: logManage,
    },
  ],
});
